package com.ytktt.study.week3.task346.gateway.properties;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * Http Client属性配置
 *
 * @author ytk
 */
@Getter
@Setter
@ConfigurationProperties(prefix = HttpClientProperties.PREFIX)
public class HttpClientProperties {

    public static final String PREFIX = "http.client";

    private int maxConnTotal = 8;

    private int maxConnPerRoute = 8;

    private int keepaliveTime = 8;

    private int connectTimeout = 1000;

    private int soTimeout = 1000;

    private int ioThreadCount = 0;

    private int rcvBufferSize = 32;
}
